//
//  JKTagLabel.h
//  JackToolsBox
//
//  Created by Jack Xue on 2019/12/10.
//  Copyright © 2019 Jack Xue. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JKTagPart.h"       //cell
#define Jk_ITEM_SPACE 8.0   //间距

NS_ASSUME_NONNULL_BEGIN

@protocol JKTagLabViewDateSource <NSObject>
@required
///提供cell_Item，可以继承JKTagCell自定义样式
- (JKTagPart*)tagCellAtIndex:(NSInteger)index;
///设置需要展示多少个tag
- (NSInteger)numberOfItemsForTagCell;
@end

@protocol JKTagLabViewDelegate <NSObject>
///点击tag事件
- (void)didSelectedLabelTagWithIndex:(NSInteger)index;
@end

@interface JKTagLabView : UIView
@property(nonatomic,weak)id<JKTagLabViewDateSource>dataSource;
@property(nonatomic,weak)id<JKTagLabViewDelegate>delegate;
@end

NS_ASSUME_NONNULL_END
